<template>
	<view v-for="item in userInfo" :key="item.id" class="page">
		<image class="avatar" :src="item.avatar ? item.avatar: '/static/icon_user.png'" />
		<view class="name">
			<text>{{item.name}}</text>
		</view>
	</view>
</template>


<script setup>
	const props = defineProps({
		userInfo: {
			type: Array,
			default: () => [],
		},
	});
	console.log("user组件接收到的数据：",props);
	
</script>


<style lang="scss" scoped>
	@use 'userInfo.scss';
</style>